<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ckplayer简单调用演示</title>

</head>

<body>
<div id="a1"></div>

<script type="text/javascript" src="/Public/Js/ckplayer6.6/ckplayer/ckplayer.js" charset="utf-8"></script>
<script type="text/javascript">
	var flashvars={
		f:'http://movie.ks.js.cn/flv/other/1_0.flv',
		c:0,
		b:0,
		h:4,
		p:2,//=0：默认暂停=1：默认播放=2：默认不加载视频
      //  subtitle_en:'/en.srt?1223123',
		};
	 var params={bgcolor:'#FFF',allowFullScreen:true,allowScriptAccess:'always',wmode:'transparent'};
    var video=['/2.mp4->video/mp4'];
    CKobject.embed('ckplayer/ckplayer.swf','a1','ckplayer_a1','400','300',false,flashvars,video,params);
	//
//	function loadedHandler(){
//		//监听播放按钮
//		video_paly_int['ckplayer_a1']=0;
//		CKobject.getObjectById('ckplayer_a1').addListener('play','playHandler("ckplayer_a1")');
//    }
//	function playHandler(id){
//		if(video_paly_int[id]==0){
//		 	CKobject.getObjectById(id).videoSeek(120);
//			video_paly_int[id]=1;//播放中
//		}
//	}
//	
//
//	/***播放时间***/
//	function timeHandler(time){
//		console.log(time);	
//		if(time>10){
//			//CKobject.getObjectById('ckplayer_a1').videoClear();
//		}
//	}
	
  </script>
</body>
</html>
